#include <stdio.h>
float Total(float a[], int n);
main()
{	 	 	 	     	 	 
    float a[10],total,average;
    int i;
    printf("Input 10 scores:\n");
    for(i=0; i<10; i++)               
        scanf("%f",&a[i]);          //1
    total = Total(a, 10);              //1
    average = total / 10;           //1
    printf("Total = %.1f\nAverage = %.1f\n", total, average);
}	 	 	 	     	 	 
float Total(float a[], int n)
{	 	 	 	     	 	 
    float res = 0;
    int i;
    for(i = 0; i < n; i++)      //1
        res += a[i];            //1
    return res;
}